View the IPv4 and IPv6 Interface Configuration on a Port

Procedure

  1. To enter User EXEC mode, log on to the switch.
  2. Verify the interface configuration on the port:

    For IPv4, enter: show ip interface gigabitethernet

    For IPv6, enter: show ipv6 interface gigabitethernet

Example

Verify the IPv4 configuration on the port:

Switch:1(config-if)# show ip interface gigabitethernet

=============================================================================================
                                         Brouter Port Ip
=============================================================================================
PORT VRF   IP_ADDRESS    NET_MASK      ADMIN  OPER   ADVERTISE DIRECT  RPC     RPCMODE
NUM  NAME                              STATUS STATUS WHEN_DOWN BCAST
---------------------------------------------------------------------------------------------
1/1  Glob~ 192.0.2.3     255.255.255.0 enable  up    disable   disable disable exist-only
1/10 spbo~ 198.51.100.4  255.255.255.0 enable  up    disable   disable disable exist-only


PORT  VRF            BROADCAST REASM 
NUM   NAME                     MAXSIZE
--------------------------------------------------------------------------------
1/1   GlobalRouter   ones      1500   
1/10  spboip         ones      1500  

Verify the IPv6 configuration on the port:

Switch:1(config-if)#show ipv6 interface gigabitethernet

========================================================================================================================
                                             Port Ipv6 Interface
========================================================================================================================
IFINDX BROUTER PHYSICAL          ADMIN   OPER  TYPE  MTU  HOP REACHABLE   RETRANSMIT  MCAST    IPSEC    RPC      RPCMODE
INDX           ADDRESS           STATE   STATE            LMT TIME        TIME        STATUS
------------------------------------------------------------------------------------------------------------------------
192    1/16    e4:5d:52:3c:65:02 enable  down  ETHER 1500 2   30000       1000        disable  disable  disable  existonly

====================================================================================================
                               Port Ipv6 Address
====================================================================================================
IPV6 ADDRESS                            BROUTER      TYPE    ORIGIN    STATUS
----------------------------------------------------------------------------------------------------
2001:db8:0:0:0:0:0:ffff/64                   1/16          UNICAST MANUAL    INACCESSIBLE INF      INF
2001:db8:0:0:e65d:52ff:fe3c:6502/64          1/16          UNICAST LINKLAYER INACCESSIBLE INF      INF

1 out of 5 Total Num of Interface Entries displayed.
2 out of 10 Total Num of Address Entries displayed.